-- GENERATED SPELL FOR [Squire Cavin] --


function spell0_33522(pUnit, Event) --@Challenger,n/a--
pUnit:FullCastSpellOnTarget(63005,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33522', 596, 1)
end

function spell1_33522(pUnit, Event) --@Force Cast Signal to Argent Charger,n/a--
pUnit:FullCastSpellOnTarget(64501,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33522', 631, 1)
end

function Sorts_33522(pUnit, Event)
local choix_sorts_33522 = math.random(0, 1)
if choix_sorts_33522 == 0 then
pUnit:RegisterEvent('spell0_33522', 1, 1)
end
if choix_sorts_33522 == 1 then
pUnit:RegisterEvent('spell1_33522', 1, 1)
end
end

function mob33522_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33522', math.random(1500, 3000), 1)
end

function mob33522_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33522_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33522_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33522, 1, 'mob33522_Action')
RegisterUnitEvent(33522, 2, 'mob33522_Leave')
RegisterUnitEvent(33522, 3, 'mob33522_Kill')
RegisterUnitEvent(33522, 4, 'mob33522_Die')
